import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '作业类型',
    align: "center",
    sorter: true,
    dataIndex: 'jobType_dictText'
  },
  {
    title: '验收人员',
    align: "center",
    dataIndex: 'approverFields'
  },
  {
    title: '验收人',
    align: "center",
    dataIndex: 'approver_dictText'
  },
  {
    title: '是否启用',
    align: "center",
    dataIndex: 'enableOrNot_dictText'
  },
  {
    title: '是否必填',
    align: "center",
    dataIndex: 'requiredOrNot_dictText'
  },
  {
    title: '排序',
    align: "center",
    sorter: true,
    dataIndex: 'sequence'
  },
];

// 高级查询数据
export const superQuerySchema = {
  jobType: {title: '作业类型',order: 0,view: 'list', type: 'string',dictCode: 'jobType',},
  approverFields: {title: '验收人员',order: 1,view: 'text', type: 'string',},
  approver: {title: '验收人',order: 2,view: 'sel_user', type: 'string',},
  enableOrNot: {title: '是否启用',order: 3,view: 'radio', type: 'string',dictCode: 'yn',},
  requiredOrNot: {title: '是否必填',order: 4,view: 'radio', type: 'string',dictCode: 'yn',},
  sequence: {title: '排序',order: 5,view: 'number', type: 'number',},
};
